﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for WebHelper
/// </summary>
public class WebHelper
{
    private HttpContext objHttpContext = HttpContext.Current;
	public WebHelper()
	{
		 
	}

    /// <summary>
    /// 是否登录
    /// </summary>
    /// <returns></returns>
    public bool IsLogin()
    {
        if(objHttpContext.Request.Cookies["uInfo"] != null)
        {
            return true;
        }
            
        if(objHttpContext.Session["uInfo"] != null)
        {
            return true;
        } 
            return false;
    }
}